package day_2022_9_to_12.Day;

/**
 * @author haomin
 * @date 2022/09/21 22:48
 **/
public class Day19_4_Num104_MaxDepth {
    class Solution {
        public int maxDepth(TreeNode root) {
            if(root == null) return 0;
            return 1 + Math.max(maxDepth(root.left), maxDepth(root.right));
        }
    }
}